{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<_sre.SRE_Match at 0x2569260>"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import re\n",
    "url = signURL = 'https://login.taobao.com/member/login_unusual.htm?\\\n",
    "user_num_id=2473065697&is_ignore=&from=alimama&style=\\\n",
    "mini&popid=&callback=&minipara=&css_style=&is_scure=true&c_is_secure=\\\n",
    "&tpl_redirect_url=http%3A%2F%2Flogin.taobao.com%2Fmember%2Ftaobaoke%2Flogin.htm%3Fis_login\\\n",
    "%3D1&cr=http%3A%2F%2Flogin.taobao.com%2Fmember%2Ftaobaoke%2Flogin.htm%3Fis_login%3D1&trust_alipay=\\\n",
    "&full_redirect=true&need_sign=&not_duplite_str=&from_encoding=&sign=&timestamp=&sr=false&guf=&sub\\\n",
    "=false&wbp=&wfl=null&allp=&loginsite=0&login_type=3&lang=zh_CN&key_login=false&new_mini_2=\\\n",
    "true&new_iv_check=true&iv_check_time=1493351558931&iv_check_sign=123123123&param='\n",
    "\n",
    "signPattern = r'iv_check_sign=(.*?)&'\n",
    "signMatch = re.search(signPattern,url) \n",
    "signMatch"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
